﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using Panny.Data;

namespace Model.Sys
{
   public class UserInfo
   {
       #region  insert
       

       public int InitUser(string username,string email)
       {
           string sql = "insert into Sys_UserInfo(username,email) values(@username,@email)";
           using (SqlText insertion = new SqlText(sql))
           {
               insertion.AddParameter("@username", username);
               insertion.AddParameter("@email", email);

               return insertion.ExecuteNonQuery();
           }
       }

       #endregion 
   }
}
